package com.xdclass.mysql.persist.mapper.custom;

import com.xdclass.mysql.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomUserMapper {

    /**
     * 通过name和company查询数据
     * @return
     */
    User selectByNameAndCompany(String name ,String company);

    void batchInsert(@Param("userList") List<User> userList);

}